package emu.grasscutter.server.packet.send;

import emu.grasscutter.net.packet.*;
import emu.grasscutter.net.proto.ReliquaryDecomposeRspOuterClass.ReliquaryDecomposeRsp;
import emu.grasscutter.net.proto.RetcodeOuterClass.Retcode;
import java.util.List;

public class PacketReliquaryDecomposeRsp extends BasePacket {
    public PacketReliquaryDecomposeRsp(Retcode retcode) {
        super(PacketOpcodes.ReliquaryDecomposeRsp);

        ReliquaryDecomposeRsp proto =
                ReliquaryDecomposeRsp.newBuilder().setRetcode(retcode.getNumber()).build();

        this.setData(proto);
    }

    public PacketReliquaryDecomposeRsp(List<Long> output) {
        super(PacketOpcodes.ReliquaryDecomposeRsp);

        ReliquaryDecomposeRsp proto = ReliquaryDecomposeRsp.newBuilder().addAllGuidList(output).build();

        this.setData(proto);
    }
}
